//
//  UFOYZXheroCollectionView.m
//  unrivalledForUniverse
//
//  Created by dllo on 16/1/15.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "UFOYZXheroCollectionView.h"

@implementation UFOYZXheroCollectionView

- (void)dealloc
{
    [_imageV release];
    [_nameL release];
    [_nicknameL release];
    [super dealloc];
}
- (instancetype) initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubviews];
    }
    return self;
}
#pragma 首页collectionView
- (void)createSubviews
{
    self.backgroundColor = [UIColor whiteColor];
    
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 60 * SCREENHEIGHT / HEIGHTSIXP, 80 * SCREENWIDTH / WIDTHSIXP, 100 * SCREENHEIGHT / HEIGHTSIXP)];
    self.imageV.backgroundColor = [UIColor cyanColor];
    self.imageV.layer.cornerRadius = 5.0;
    self.imageV.layer.masksToBounds = YES;
    [self.contentView addSubview:self.imageV];
    
    self.nameL = [[UILabel alloc] initWithFrame:CGRectMake(0, 160 * SCREENHEIGHT / HEIGHTSIXP, 80 * SCREENWIDTH / WIDTHSIXP, 30 *SCREENHEIGHT/ HEIGHTSIXP)];
    self.nameL.backgroundColor = [UIColor greenColor];
    self.nameL.textAlignment = NSTextAlignmentCenter;
    self.nameL.font = [UIFont systemFontOfSize:11.0];
    [self addSubview:self.nameL];
    
    self.nicknameL = [[UILabel alloc] initWithFrame:CGRectMake(0, 190 * SCREENHEIGHT / HEIGHTSIXP, 80 * SCREENWIDTH / WIDTHSIXP, 30 * SCREENHEIGHT / HEIGHTSIXP)];
    self.nicknameL.backgroundColor = [UIColor blueColor];
    self.nicknameL.textAlignment = NSTextAlignmentCenter;
    self.nicknameL.font = [UIFont systemFontOfSize:11.0];
    [self addSubview:self.nicknameL];
}

@end
